<?php
class Company extends AppModel {
	var $name = 'Company';
	var $displayField = 'title';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
        var $virtualFields=array(
            'fullRow'=>'CONCAT(Company.title," - ",Company.code," - ",Company.site," - ",Company.department," - ",Company.activity," - ",Company.country)',
            'display'=>'CONCAT(Company.title," - ",Company.code," - ",Company.site," - ",Company.department," - ",Company.activity," - ",Company.country)',

        );
        var $belongsTo=array('Country' => array(
			'className' => 'Country',
			'foreignKey' => 'country_id',			
		),);
	var $hasMany = array(
		'Dmdform' => array(
			'className' => 'Dmdform',
			'foreignKey' => 'company_id',
			'dependent' => false,
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'company_id',
			'dependent' => false,
		),
		'Workflow' => array(
			'className' => 'Workflow',
			'foreignKey' => 'company_id',
			'dependent' => false,
		)
	);

}
?>